﻿using System.Collections.Generic;
using FwtXnaCommon.Maps;
using GpgCore.GameWorld;
using GpgCore.MapItems;
using GpgCore.Products;

namespace GpgCore.Maps
{
    public class PlanetMapCell : SimpleMapCell
    {
        public PlanetMap OwnMap;
        public PlanetMapCellType CellType;
        public Product Minerals;
        public City BelongsToCity { get; protected set; }

        public void BelongToCity(City city)
        {
            BelongsToCity = city;
            city.BelongingCells.AddDistinct(this);
        }

        public MapItem MapItem;
        public City City
        {
            get { return MapItem as City; }
        }

        public List<PlanetMapCell> GetNeighborCells()
        {
            return OwnMap.GetNeighborCells(PosX, PosY);
        }
    }

    public enum PlanetMapCellType
    {
        Ocean,
        Plains,
        Hills,
        Mounts
    }
}
